package com.hy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hy.entity.pojo.SysMenu;
import com.hy.entity.pojo.SysRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysRoleMapper extends BaseMapper<SysRole> {
    List<SysRole> findSysRoleByUserId(Long userId);
    List<SysMenu> findMenuListByRoleId(Integer roleId);
}
